<template>
	<view >
		<my-header bgColor="bg-gradual-blue" :isBack="true" :isHome="isHome">
			<block slot="backText">返回</block>
			<block slot="content">周公解梦</block>
		</my-header>
        <view class="col">
            <textarea placeholder="请输入您梦境关键字"  v-model="content"/>
            <view class="btn col " @click="search()">解梦</view>
        </view>
        <!-- <loading v-if="!houseList"></loading> -->
		<!-- <my-footer cur="0"></my-footer> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
                modalName:"",
                content:"",
                checkbox:[],
                isHome:""
			}
		},
		onLoad(opt) {
             this.isHome=opt.isHome

			// this.initData()	
			// this.search()
		},
		methods: {
			async initData(){
                let zhou=  uni.getStorageSync('zhougong')
                if (zhou) {
                    this.checkbox=zhou
                } else{
                    const res=await uni.$request({
                    },"api/api/get_list")
                    this.checkbox=res.data
                    uni.setStorageSync('zhougong', res.data)
                }
				
            },
            search(){
                let link="./info?content="+this.content
                uni.navigateTo({
                    url:link,
                    
                });
            },
			
		}
	}
</script>

<style lang="scss">
	@import "./main";
</style>